-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(protocol-designer): TC renders for OT-2 and fix isSlotEmpty logic #14177
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## edge #14177 +/- ##
==========================================
- Coverage 70.40% 70.38% -0.02%
==========================================
Files 2510 2510
Lines 71201 71281 +80
Branches 8971 9010 +39
==========================================
+ Hits 50127 50172 +45
- Misses 18880 18908 +28
- Partials 2194 2201 +7
Flags with carried forward coverage won't be shown. Click here to find out more.
|
@@ -40,6 +40,7 @@ export type OT2AddressableAreaName = | |||
| '9' | |||
| '10' | |||
| '11' | |||
| '12' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spoke to Brent about this and he said that its fine that it'll be merged into edge and not the release branch since no place in the app lists all the addressable areas for the ot-2.
@@ -39,6 +39,7 @@ import { | |||
TRASH_BIN_ADAPTER_FIXTURE, | |||
WASTE_CHUTE_CUTOUT, | |||
} from '@opentrons/shared-data' | |||
import { SPAN7_8_10_11_SLOT } from '../../constants' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit
Maybe adding _
between SPAN
and 7
if the changes wouldn't be a lot.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this const is used all over unfortunately so i'll just keep it as is. I hope we can deprecate the usage completely at some point.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
left a couple of comments, but the changes look good to me.
closes RQA-2062
Overview
Fixes 3 bugs:
Test Plan
Create an OT-2 protocol and add a thermocycler (gen1 or gen 2). Go to the deck map view and see that it renders correctly and that you can add a labware and the 4 slots are considered full. Move the tiprack into another slot and see that slot 1 and 2 are empty and available to add labware into.
Create a move labware step and see in the new location dropdown that slot 12 is not selectable
Changelog
isSlotEmpty
util by mapping the slots to the cutouts and comparing that. the reason why there was an error only with the ot-2 is because the slot would be 1 or 2 and the trash bin is in cutout12, which includes 1 and 2.Review requests
see test plan
Risk assessment
low